<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <title>回复留言</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" th:href="@{/layui/dist/css/layui.css}"  media="all">
  <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>
<div style="margin: 0 auto;width: 70%;margin-top: 60px;">              
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  <legend>回复留言</legend>
</fieldset>
<div style="margin: 0 auto;width: 80%;">
<form class="layui-form" action="" th:action="@{/replyMessage}">
  <input type="text" hidden="hidden" th:value="${sysMessage.id}" name="id">
  <div class="layui-form-item">
    <label class="layui-form-label">用户名</label>
    <div class="layui-input-block" style="width: 200px;">
      <input type="text" name="username" lay-verify="title" autocomplete="off" class="layui-input" value="tom" readonly="readonly">
    </div>
  </div>
  
  <div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">留言时间</label>
      <div class="layui-input-inline">
        <input type="text" name="createtime" id="date"  autocomplete="off" class="layui-input" th:value="${createTime}" readonly="readonly">
      </div>
    </div>
  </div>

  <!--<div class="layui-form-item">-->
    <!--<div class="layui-inline">-->
      <!--<label class="layui-form-label">回复时间</label>-->
      <!--<div class="layui-input-inline">-->
        <!--<input type="text" class="layui-input" id="test5" name="replytime" placeholder="yyyy-MM-dd HH:mm:ss" th:value="${replyTime}" readonly>-->
      <!--</div>-->
    <!--</div>-->
  <!--</div>-->
  
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">留言内容</label>
    <div class="layui-input-block">
      <textarea class="layui-textarea" readonly="readonly" name="messageContent" th:text="${sysMessage.messageContent}">留言内容</textarea>
    </div>
  </div>
  
  <!--<div class="layui-form-item layui-form-text">-->
    <!--<label class="layui-form-label">回复内容</label>-->
    <!--<div class="layui-input-block">-->
      <!--<textarea class="layui-textarea" name="replyContent" th:text="${sysMessage.replyContent}">回复内容</textarea>-->
    <!--</div>-->
  <!--</div>-->
  
  <div class="layui-form-item">
    <div class="layui-input-block">
      <!--<button class="layui-btn" lay-submit="" lay-filter="demo1" type="submit" onclick="exit()">回复</button>-->
      <button type="reset" class="layui-btn layui-btn-primary" onclick="exit()">返回</button>
    </div>
  </div>
</form>
</div>
</div>
<script th:src="@{/layui/dist/layui.all.js}" charset="utf-8"></script>
<script th:src="@{/js/jquery.min.js}" charset="utf-8"></script>
<script type="text/javascript">
    function exit() {
        window.parent.location.reload(); //刷新父页面
        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
        parent.layer.close(index); //再执行关闭
    }
</script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<!--<script>-->
    <!--layui.use('laydate', function() {-->
        <!--var laydate = layui.laydate;-->
        <!--//日期时间选择器-->
        <!--laydate.render({-->
            <!--elem: '#test5'-->
            <!--,type: 'datetime'-->
        <!--});-->
    <!--});-->

<!--</script>-->
<!--<script>-->
<!--layui.use(['form', 'layedit', 'laydate'], function(){-->
  <!--var form = layui.form-->
  <!--,layer = layui.layer-->
  <!--,layedit = layui.layedit-->
  <!--,laydate = layui.laydate;-->
<!--});-->
<!--</script>-->

</body>
</html>